﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Classes.effects {
    import Classes.*;
    import Classes.effects.Particle.*;
    import Engine.*;

    public class MapResourceEffectFactory {

        public static function createEffect(_arg1:MapResource, _arg2:EffectType):MapResourceEffect{
            var _local3:MapResourceEffect;
            switch (_arg2){
                case EffectType.SPARKLE:
                    _local3 = new SparkleEffect(_arg1);
                    break;
                case EffectType.POOF:
                    _local3 = new PoofEffect(_arg1, EffectType.POOF.type);
                    break;
                case EffectType.FLASH:
                    _local3 = new PoofEffect(_arg1, EffectType.FLASH.type, 9);
                    break;
                case EffectType.FLASHATBOTTOM:
                    _local3 = new AnimationEffect(_arg1, EffectType.FLASHATBOTTOM.type, true);
                    break;
                case EffectType.VEHICLE_POOF:
                    _local3 = new PoofEffect(_arg1, EffectType.VEHICLE_POOF.type);
                    break;
                case EffectType.ZS_EFFECT:
                    _local3 = new ZsEffect(_arg1, EffectType.ZS_EFFECT.type);
                    break;
                case EffectType.ZS_PEEP_EFFECT:
                    _local3 = new ZsEffect(_arg1, EffectType.ZS_PEEP_EFFECT.type);
                    break;
                case EffectType.SHAKE:
                    _local3 = new ShakeEffect(_arg1, 0.025, 3, 10);
                    break;
                case EffectType.SUN:
                    _local3 = new SunriseEffect(_arg1, EffectType.SUN.type);
                    break;
                case EffectType.SUNRISE:
                    _local3 = new AnimationEffect(_arg1, EffectType.SUNRISE.type);
                    break;
                case EffectType.BAD_SIGN:
                    _local3 = new AnimationEffect(_arg1, EffectType.BAD_SIGN.type, false, false, true);
                    break;
                case EffectType.FIREWORK_BALLOONS:
                    _local3 = new FireworksEffect(_arg1, EffectType.FIREWORK_BALLOONS.type, true);
                    break;
                case EffectType.BALLOONS:
                    _local3 = new CelebrationBalloonsEffect(_arg1, EffectType.CELEBRATION_BALLOONS.type, false);
                    break;
                case EffectType.CELEBRATION_BALLOONS:
                    _local3 = new CelebrationBalloonsEffect(_arg1, EffectType.CELEBRATION_BALLOONS.type, true);
                    break;
                case EffectType.COIN:
                    _local3 = new BounceAnimationEffect(_arg1, EffectType.COIN.type);
                    break;
                case EffectType.BIZ_COIN:
                    _local3 = new AnimationEffect(_arg1, EffectType.BIZ_COIN.type, false, false);
                    break;
                case EffectType.SHORT_GLOW:
                    _local3 = new ShortGlowEffect(_arg1, 1, EmbeddedArt.PEEP_HIGHLIGHT_COLOR);
                    break;
                case EffectType.PULSATE_GLOW:
                    _local3 = new PulsateGlowEffect(_arg1, Constants.COLOR_HIGHLIGHT_BLUE);
                    break;
                case EffectType.RIBBONS:
                    _local3 = new RibbonsEffect(_arg1);
                    break;
                case EffectType.PIXIEDUST:
                    _local3 = new PixieDustEffect(_arg1);
                    break;
                case EffectType.TRAIN_SMOKE:
                    _local3 = new TrainSmokeEffect(_arg1);
                    break;
                case EffectType.COIN_PICK:
                    _local3 = new CoinPickEffect(_arg1);
                    break;
                case EffectType.SEPIA:
                    _local3 = new SepiaEffect(_arg1, 0.33);
                    break;
                case EffectType.DARKEN:
                    _local3 = new BrightenEffect(_arg1, -40);
                    break;
                case EffectType.MATRIXTEST:
                    _local3 = new MatrixExperimentEffect(_arg1);
                    break;
                case EffectType.SHAKE_AND_BOUNCE:
                    _local3 = new ShakeAndBounceEffect(_arg1);
                    break;
                case EffectType.SIMPLE_BOUNCE:
                    _local3 = new SimpleBounceEffect(_arg1);
                    break;
                case EffectType.STAGE_PICK:
                    _local3 = new StagePickEffect(_arg1);
                    break;
                case EffectType.MASTERY_STAGE_PICK:
                    _local3 = new MasteryStagePickEffect(_arg1);
                    break;
                case EffectType.SCAFFOLD:
                    _local3 = new ScaffoldEffect(_arg1, 2, 2, 3);
                    break;
                case EffectType.BIRDS:
                    _local3 = new AnimationEffect(_arg1, EffectType.BIRDS.type, false, true);
                    break;
            };
            return (_local3);
        }

    }
}//package Classes.effects 
